<?php /* Smarty version 2.6.16, created on 2009-04-17 03:35:38
         compiled from UploadStream.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'language', 'UploadStream.html', 3, false),array('function', 'url', 'UploadStream.html', 10, false),array('function', 'module', 'UploadStream.html', 16, false),array('function', 'messages', 'UploadStream.html', 42, false),array('modifier', 'escape', 'UploadStream.html', 50, false),array('modifier', 'filesize', 'UploadStream.html', 114, false),)), $this); ?>
<?php if (get ( 'uploaded' )): ?>
<div class="message_info" style="padding:8px; text-align:left;">
	<?php echo smarty_function_language(array('text' => 'Mod_Video.upload_video_done'), $this);?>

	<?php if ($this->_tpl_vars['bApprovalSetting']): ?>
	<?php echo smarty_function_language(array('text' => 'Mod_Video.upload_video_approval'), $this);?>

	<?php endif; ?>
</div>
	<?php if (! getParam ( 'vid_approve' )): ?>
	<ul>
		<li><a href="<?php echo smarty_function_url(array('link' => 'public.videos','id' => $this->_tpl_vars['iUploadedId']), $this);?>
"><?php echo smarty_function_language(array('text' => 'Mod_Video.view_your_video'), $this);?>
</a></li>
	</ul>
	<?php endif; ?>
	<br />
	<br />
<?php elseif ($this->_tpl_vars['bNoImageUploaded']): ?>
	<?php echo smarty_function_module(array('module' => 'Video','component' => 'UploadImage','iId' => $this->_tpl_vars['iUploadedId']), $this);?>

<?php else:  echo '
<script type="text/javascript">

function check_stream(iId)
{
'; ?>

	<?php $_from = $this->_tpl_vars['aStreamOptions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aJava']):
?>
	var stream_<?php echo $this->_tpl_vars['aJava']['id']; ?>
 = '<?php echo $this->_tpl_vars['aJava']['image']; ?>
';
	<?php endforeach; endif; unset($_from); ?>
	<?php echo '
	if ( eval(\'stream_\'+ iId +\'\') == \'1\' )
	{
		document.getElementById(\'optional_image\').style.display=\'none\';
		return;
	}

	document.getElementById(\'optional_image\').style.display=\'\';
	return;
}
</script>
'; ?>


<?php echo $this->_tpl_vars['sValMess']; ?>

<form method="post" action="<?php echo smarty_function_url(array('link' => 'public.account.submit.add-video','mode' => 'stream'), $this);?>
" onsubmit="<?php echo $this->_tpl_vars['sValJs']; ?>
" enctype="multipart/form-data">
<?php echo smarty_function_messages(array(), $this);?>

<div id="formhide1">
<div style="padding:8px;">
<input type="hidden" name="post_item" value="true" />
<table style="width:100%;" cellspacing="2" cellpadding="4">
<tr>
    <td style="text-align:right;" class="color"><span class="star">*</span> <?php echo smarty_function_language(array('text' => "Mod_Video.add_form_title"), $this);?>
:</td>
    <td class="border13">
        <input type="text" name="val[vid_title]" maxlength="40" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['aVal']['vid_title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
    </td>
</tr>
<tr>
    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.add_form_category'), $this);?>
:</td>
    <td class="border13">
        <select name="val[vid_list_id]" style="width:150px;">
		<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aItem']):
?>
		<option value="<?php echo $this->_tpl_vars['aItem']['list_id']; ?>
"<?php if ($this->_tpl_vars['aVal']['vid_list_id'] == $this->_tpl_vars['aItem']['list_id']): ?> selected="true"<?php endif; ?>><?php echo $this->_tpl_vars['aItem']['list_name']; ?>
</option>
		<?php endforeach; endif; unset($_from); ?>
		</select>
    </td>
</tr>
<tr>
    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.tags'), $this);?>
:</td>
    <td class="border13">
        <input type="text" name="val[vid_tags]" size="30" maxlength="100" onfocus="this.className='inputmain';" onblur="this.className='';" value="<?php echo $this->_tpl_vars['aVal']['vid_tags']; ?>
" />
    </td>
</tr>
<tr>
    <td style="text-align:right;vertical-align:top;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.add_form_details'), $this);?>
:</td>
    <td class="border13">
        <textarea cols="50" rows="5" name="val[vid_info]"><?php echo $this->_tpl_vars['aVal']['vid_info']; ?>
</textarea>
    </td>
</tr>
<tr>
    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.add_form_stream_from'), $this);?>
:</td>
    <td class="border13">
		<select name="val[stream_id]" style="width:150px;" onchange="check_stream(this.value);">
		<?php $_from = $this->_tpl_vars['aStreamOptions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aStream']):
?>
			<option value="<?php echo $this->_tpl_vars['aStream']['id']; ?>
"<?php if ($this->_tpl_vars['aVal']['stream_id'] == $this->_tpl_vars['aStream']['id']): ?> selected="true"<?php endif; ?>><?php echo $this->_tpl_vars['aStream']['name']; ?>
</option>
		<?php endforeach; endif; unset($_from); ?>
		</select>
    </td>
</tr>
<tr>
    <td style="text-align:right;" class="color"><span class="star">*</span> <?php echo smarty_function_language(array('text' => "Mod_Video.add_form_url"), $this);?>
:</td>
    <td class="border13">
        <input type="text" name="val[vid_url]" size="40" onfocus="this.className='inputmain';" onblur="this.className='';" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['aVal']['vid_url'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
    </td>
</tr>
<tr id="optional_image" style="display:none;">
    <td style="text-align:right;" class="color"><?php echo smarty_function_language(array('text' => 'Mod_Video.optional_image'), $this);?>
:</td>
    <td class="border13">
        <input type="file" name="image" size="30" />
    </td>
</tr>
<tr>
	<td></td>
	<td><span class="star">*</span> - <?php echo smarty_function_language(array('text' => 'Mod_Video.man_fields'), $this);?>
</td>
</tr>
<tr>
	<td></td>
    <td>
		<input name="act[add]" value="<?php echo smarty_function_language(array('text' => 'Mod_Video.get_video'), $this);?>
" class="mainmenu6" onmouseover="this.className='mainmenu7';" onmouseout="this.className='mainmenu6';" type="submit">
	</td>
</tr>
</table>
</div>

<div class="border13">
    <div style="padding:10px;font-size:8pt;" class="color">
    <b><?php echo smarty_function_language(array('text' => 'space_usage_info'), $this);?>
:</b>
    <div style="padding:8px;">
        <?php echo smarty_function_language(array('text' => 'space_used_650'), $this);?>
: <?php echo ((is_array($_tmp=$this->_tpl_vars['iUsedSpace'])) ? $this->_run_mod_handler('filesize', true, $_tmp) : smarty_modifier_filesize($_tmp)); ?>
 <br />
        <?php echo smarty_function_language(array('text' => 'space_allowed'), $this);?>
: <?php if ($this->_tpl_vars['iAllowedSpace'] == 0):  echo smarty_function_language(array('text' => 'unlimited'), $this); else:  echo ((is_array($_tmp=$this->_tpl_vars['iAllowedSpace'])) ? $this->_run_mod_handler('filesize', true, $_tmp) : smarty_modifier_filesize($_tmp));  endif; ?>
	</div>
    </div>
</div>
</div>
</form>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/bar.html", 'smarty_include_vars' => array('sMessage' => 'Mod_Language.upload_item')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<?php endif; ?>